package com.lewin.ringroad.net.message;

import io.netty.buffer.ByteBuf;

/**
 * @author Jun
 * @since 1.0.0
 */
public abstract class BaseMessage {

    private Long dtId;
    private String bizId;

    public abstract BaseMessage parse(ByteBuf buf);

    public Long getDtId() {
        return dtId;
    }

    public BaseMessage setDtId(Long dtId) {
        this.dtId = dtId;
        return this;
    }

    public String getBizId() {
        return bizId;
    }

    public BaseMessage setBizId(String bizId) {
        this.bizId = bizId;
        return this;
    }

    @Override
    public String toString() {
        return "BaseMessage{" +
                "dtId=" + dtId +
                ", bizId='" + bizId + '\'' +
                '}';
    }
}
